def getPentagonalNumber(n):
    return (n * (3 * n - 1)) / 2


s = []


def appendItems():
    for i in range(1, 101):
        s.append(getPentagonalNumber(i))


def output(content: list, number_of_column: int = 10):
    """
    Output some contents to console with specific columns
    :param content: The content you want to output
    :param number_of_column: How many columns would you want to output, if None, it will be 10
    :return: None
    """
    column = 1
    for i in content:
        if column <= number_of_column:
            print(str(int(i)) + ' ', end='')
            column += 1
        else:
            print('')
            print(str(int(i)) + ' ', end='')
            column = 2


appendItems()
output(content=s)
